
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>自动化测试报告</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <style>
        body { padding: 20px; }
        .test-summary { margin: 20px 0; }
        .chart-container { text-align: center; margin: 20px 0; }
        .status-success { color: #28a745; }
        .status-failure { color: #dc3545; }
        .timestamp { color: #6c757d; font-size: 0.9em; }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="mb-4">自动化测试报告</h1>
        
        <div class="row test-summary">
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title">测试用例总数</h5>
                        <p class="card-text">1</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title text-success">成功用例数</h5>
                        <p class="card-text">1</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title text-danger">失败用例数</h5>
                        <p class="card-text">0</p>
                    </div>
                </div>
            </div>
        </div>

        <div class="chart-container">
            <img src="" alt="Test Results Pie Chart">
        </div>

        <div class="table-responsive">
            <table class="table table-striped table-hover">
                <thead>
                    <tr>
                        <th>用例ID</th>
                        <th>测试点</th>
                        <th>步骤编号</th>
                        <th>步骤描述</th>
                        <th>执行状态</th>
                        <th>执行时间</th>
                        <th>错误信息</th>
                    </tr>
                </thead>
                <tbody>
                    
                    <tr>
                        <td>app-1</td>
                        <td>测试</td>
                        <td>1</td>
                        <td>点击登录</td>
                        <td class="status-success">
                            
                            ✓ 成功
                            
                        </td>
                        <td class="timestamp">2024-12-23 15:58:17</td>
                        <td class="text-danger"></td>
                    </tr>
                    
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>
        